package request

// InstallDatabaseVo 数据源配置
type InstallDatabaseVo struct {
	Ip          string `json:"ip" binding:"required"`
	Part        string `json:"part" binding:"required"`
	Username    string `json:"username" binding:"required"`
	Password    string `json:"password" binding:"required"`
	Database    string `json:"database" binding:"required"`
	TablePrefix string `json:"table_prefix" binding:"required"`
}

// InstallStorageVo 存储源配置
type InstallStorageVo struct {
	DefaultSource   string `json:"default_source" binding:"required"` // 默认的源
	Endpoint        string `json:"endpoint" binding:"required"`       // 域名
	AccessKeyId     string `json:"access_key_id" binding:"required"`  //
	AccessKeySecret string `json:"access_key_secret" binding:"required"`
	BucketName      string `json:"bucket_name" binding:"required"`
	UseCname        bool   `json:"use_cname" binding:"required"`
}

// InstallUsernameVo 账号密码
type InstallUsernameVo struct {
	Username string `json:"username" binding:"required"`
	Password string `json:"password" binding:"required"`
	Email    string `json:"email" binding:"required"`
}

// InstallLoginVo 登陆
type InstallLoginVo struct {
	Username string `json:"username" binding:"required"`
	Password string `json:"password" binding:"required"`
}
